/*
 * @Descripttion: 仓库接口
 * @version:
 * @Author: cxguo
 * @Date: 2019-08-02 15:03:05
 * @LastEditors: cxguo
 * @LastEditTime: 2019-11-20 17:13:55
 */
import axios from '@/utils/request'
const baseUrl = '/shop'

export function addData(params) {
  return axios.request({
    url: `${baseUrl}/add`,
    method: 'post',
    data: params
  })
}

export function delListData(params) {
  return axios.request({
    url: `${baseUrl}/del_list`,
    method: 'post',
    data: params
  })
}

export function updateData(params) {
  return axios.request({
    url: `${baseUrl}/update`,
    method: 'post',
    data: params
  })
}

export function getdataById(params) {
  return axios.request({
    url: `${baseUrl}/get_data_by_id`,
    method: 'post',
    data: params
  })
}

export function listData(params) {
  return axios.request({
    url: `${baseUrl}/list`,
    method: 'post',
    data: params
  })
}

export function getDataById(params) {
  return axios.request({
    url: `${baseUrl}/get_by_id`,
    method: 'post',
    data: params
  })
}

export function getOptions(params) {
  return axios.request({
    url: `${baseUrl}/get_options`,
    method: 'post',
    data: params
  })
}
